#include <stdio.h>
#include <stdlib.h>

int main() {
    FILE *fp;
    char ch;

    fp = fopen("..\\test-data.txt", "a+");
    if (fp == NULL) {
        printf("can not read");
        exit(0);
    }

    ch = fgetc(fp);
    while (ch != EOF) {
        putchar(ch);
        ch = fgetc(fp);
    }

    fclose(fp);

    return 0;
}